using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI;
using CommunityServer.Components;
using CommunityServer.Blogs.Components;

namespace CommunityServerStuff.Controls
{
    public class OpenSearchHeader : LiteralControl
    {

        protected override void Render(HtmlTextWriter writer)
        {
            SiteSettings settings = CSContext.Current.SiteSettings;
            writer.Write("<link rel=\"search\" type=\"application/opensearchdescription+xml\" href=\"{0}/OpenSearch.ashx\" title=\"{1}\" />", settings.SiteUrl, settings.SiteName);
        }
    }
}
